<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>NSArray(MasonryAdditiion) Category Reference</title>

	<link rel="stylesheet" href="../css/style.css">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
	<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
	<header>
		<div class="container" class="hide-in-xcode">
			
			<h1 id="library-title">
				<a href="../index.html">TFFoundation </a>
			</h1>

			<p id="developer-home">
				<a href="../index.html">“Timeface”</a>
			</p>
			
		</div>
	</header>

	<aside>
		<div class="container">
			<nav>
				<ul id="header-buttons" role="toolbar">
					<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>

					<li id="on-this-page" role="navigation">
						<label>
							On This Page

							<div class="chevron">
								<div class="chevy chevron-left"></div>
								<div class="chevy chevron-right"></div>
							</div>

							<select id="jump-to">
	<option value="top">Jump To&#133;</option>
	
	<option value="overview">Overview</option>
	

	
	
	<option value="tasks">Tasks</option>
	
	

	
	

	

	
	<optgroup label="Instance Methods">
		
		<option value="//api/name/mas_alignAlongAxis:fixedSpace:leadSpace:">- mas_alignAlongAxis:fixedSpace:leadSpace:</option>
		
		<option value="//api/name/mas_alignAlongAxis:fixedSpace:leadSpace:tailSpace:">- mas_alignAlongAxis:fixedSpace:leadSpace:tailSpace:</option>
		
		<option value="//api/name/mas_alignAlongAxis:fixedSpace:leadingTo:leadSpace:trailingTo:tailSpace:">- mas_alignAlongAxis:fixedSpace:leadingTo:leadSpace:trailingTo:tailSpace:</option>
		
		<option value="//api/name/mas_alignAlongAxis:spaceType:">- mas_alignAlongAxis:spaceType:</option>
		
		<option value="//api/name/mas_alignAlongAxis:spaceType:leadSpace:trailSpace:">- mas_alignAlongAxis:spaceType:leadSpace:trailSpace:</option>
		
		<option value="//api/name/mas_alignHorizontallyWithLineNumber:leadSpace:space:trailSpace:topSpace:bottomSpace:verticalSpace:">- mas_alignHorizontallyWithLineNumber:leadSpace:space:trailSpace:topSpace:bottomSpace:verticalSpace:</option>
		
		<option value="//api/name/mas_alignHorizontallyWithLineNumber:leadSpace:space:trailSpace:topSpace:bottomSpace:verticalSpace:separatorColor:separatorWidth:">- mas_alignHorizontallyWithLineNumber:leadSpace:space:trailSpace:topSpace:bottomSpace:verticalSpace:separatorColor:separatorWidth:</option>
		
		<option value="//api/name/mas_alignHorizontallyWithLineNumber:leadSpace:space:trailSpace:topTo:topSpace:bottomTo:bottomSpace:verticalSpace:separatorColor:separatorWidth:">- mas_alignHorizontallyWithLineNumber:leadSpace:space:trailSpace:topTo:topSpace:bottomTo:bottomSpace:verticalSpace:separatorColor:separatorWidth:</option>
		
		<option value="//api/name/mas_centerAlongAxis:fixedSpace:">- mas_centerAlongAxis:fixedSpace:</option>
		
		<option value="//api/name/mas_centerAlongAxis:fixedSpace:leadSpace:trailSpace:">- mas_centerAlongAxis:fixedSpace:leadSpace:trailSpace:</option>
		
		<option value="//api/name/mas_centerAlongAxis:fixedSpace:leadingTo:leadSpace:trailingTo:tailSpace:">- mas_centerAlongAxis:fixedSpace:leadingTo:leadSpace:trailingTo:tailSpace:</option>
		
	</optgroup>
	
	
</select>
						</label>
					</li>
				</ul>
			</nav>
		</div>
	</aside>

	<article>
		<div id="overview_contents" class="container">
			<div id="content">
				<main role="main">
					<h1 class="title">NSArray(MasonryAdditiion) Category Reference</h1>

					
					<div class="section section-specification"><table cellspacing="0"><tbody>
						<tr>
	<th>Declared in</th>
	<td>NSArray+MasonryAdditiion.h<br />NSArray+MasonryAdditiion.m</td>
</tr>
						</tbody></table></div>
					

                    
					
					<div class="section section-overview">
						<a title="Overview" name="overview"></a>
						<h2 class="subtitle subtitle-overview">Overview</h2>
						<p>Masonry快速布局方法扩展</p>
					</div>
					
					

					
					
					<div class="section section-tasks">
						<a title="Tasks" name="tasks"></a>
						

						
						

						<div class="task-list">
							<div class="section-method">
	<a name="//api/name/mas_alignAlongAxis:fixedSpace:leadSpace:" title="mas_alignAlongAxis:fixedSpace:leadSpace:"></a>
	<h3 class="method-title"><code><a href="#//api/name/mas_alignAlongAxis:fixedSpace:leadSpace:">&ndash;&nbsp;mas_alignAlongAxis:fixedSpace:leadSpace:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>排列一组view，所有的view都必须有自己的intrinsicSize, super的大小需要确定，（也就是说super的大小不能依赖本数组里的view）</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)mas_alignAlongAxis:(MASAxisType)<em>axisType</em> fixedSpace:(nullable id)<em>fixedSpace</em> leadSpace:(CGFloat)<em>leadSpace</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>axisType</code></th>
						<td><p>方向</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>fixedSpace</code></th>
						<td><p>view之间的space,注：id类型支持NSNumber类型即ItemSpace相等，和NSArray<NSNumber *>类型，即itemSpace不相等。</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>leadSpace</code></th>
						<td><p>第一个view与super之间的距离</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>排列一组view，所有的view都必须有自己的intrinsicSize, super的大小需要确定，（也就是说super的大小不能依赖本数组里的view）</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSArray+MasonryAdditiion.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/mas_alignAlongAxis:fixedSpace:leadSpace:tailSpace:" title="mas_alignAlongAxis:fixedSpace:leadSpace:tailSpace:"></a>
	<h3 class="method-title"><code><a href="#//api/name/mas_alignAlongAxis:fixedSpace:leadSpace:tailSpace:">&ndash;&nbsp;mas_alignAlongAxis:fixedSpace:leadSpace:tailSpace:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>排列一组view，所有的view都必须有自己的intrinsicSize，可以用于cell中自适应contentView的高度，super的axisType指定的维度由本数组里的view确定</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)mas_alignAlongAxis:(MASAxisType)<em>axisType</em> fixedSpace:(nullable id)<em>fixedSpace</em> leadSpace:(CGFloat)<em>leadSpace</em> tailSpace:(CGFloat)<em>tailSpace</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>axisType</code></th>
						<td><p>方向</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>fixedSpace</code></th>
						<td><p>view之间的space,注：id类型支持NSNumber类型即ItemSpace相等，和NSArray<NSNumber *>类型，即itemSpace不相等。</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>leadSpace</code></th>
						<td><p>第一个view与super之间的距离</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>tailSpace</code></th>
						<td><p>最后一个view与super之间的距离，不大于0时不考虑</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>排列一组view，所有的view都必须有自己的intrinsicSize，可以用于cell中自适应contentView的高度，super的axisType指定的维度由本数组里的view确定</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSArray+MasonryAdditiion.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/mas_alignAlongAxis:fixedSpace:leadingTo:leadSpace:trailingTo:tailSpace:" title="mas_alignAlongAxis:fixedSpace:leadingTo:leadSpace:trailingTo:tailSpace:"></a>
	<h3 class="method-title"><code><a href="#//api/name/mas_alignAlongAxis:fixedSpace:leadingTo:leadSpace:trailingTo:tailSpace:">&ndash;&nbsp;mas_alignAlongAxis:fixedSpace:leadingTo:leadSpace:trailingTo:tailSpace:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>排列一组view，所有的view都必须有自己的intrinsicSize，可以用于cell中自适应contentView的高度，super的axisType指定的维度由本数组里的view确定</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)mas_alignAlongAxis:(MASAxisType)<em>axisType</em> fixedSpace:(nullable id)<em>fixedSpace</em> leadingTo:(nullable MASViewAttribute *)<em>leadingViewAttribute</em> leadSpace:(CGFloat)<em>leadSpace</em> trailingTo:(nullable MASViewAttribute *)<em>trailingViewAttribute</em> tailSpace:(CGFloat)<em>tailSpace</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>axisType</code></th>
						<td><p>方向</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>fixedSpace</code></th>
						<td><p>view之间的space,注：id类型支持NSNumber类型即ItemSpace相等，和NSArray<NSNumber *>类型，即itemSpace不相等。</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>leadingViewAttribute</code></th>
						<td><p>leadingViewAttribute</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>leadSpace</code></th>
						<td><p>第一个view与leadingViewAttribute之间的距离</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>trailingViewAttribute</code></th>
						<td><p>trailingViewAttribute</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>tailSpace</code></th>
						<td><p>最后一个view与trailingViewAttribute之间的距离，不大于0时不考虑</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>排列一组view，所有的view都必须有自己的intrinsicSize，可以用于cell中自适应contentView的高度，super的axisType指定的维度由本数组里的view确定</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSArray+MasonryAdditiion.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/mas_alignAlongAxis:spaceType:" title="mas_alignAlongAxis:spaceType:"></a>
	<h3 class="method-title"><code><a href="#//api/name/mas_alignAlongAxis:spaceType:">&ndash;&nbsp;mas_alignAlongAxis:spaceType:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>排列一组view，super的大小需要确定，或者被其他的subviews共同可以确定（也就是说super的大小不能依赖本数组里的view）</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)mas_alignAlongAxis:(MASAxisType)<em>axisType</em> spaceType:(MASAlignChildrenSpaceType)<em>spaceType</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>axisType</code></th>
						<td><p>方向</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>spaceType</code></th>
						<td><p>类型</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>排列一组view，super的大小需要确定，或者被其他的subviews共同可以确定（也就是说super的大小不能依赖本数组里的view）</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSArray+MasonryAdditiion.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/mas_alignAlongAxis:spaceType:leadSpace:trailSpace:" title="mas_alignAlongAxis:spaceType:leadSpace:trailSpace:"></a>
	<h3 class="method-title"><code><a href="#//api/name/mas_alignAlongAxis:spaceType:leadSpace:trailSpace:">&ndash;&nbsp;mas_alignAlongAxis:spaceType:leadSpace:trailSpace:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>排列一组view并设置左右边距，super的大小需要确定，或者被其他的subviews共同可以确定（也就是说super的大小不能依赖本数组里的view）</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)mas_alignAlongAxis:(MASAxisType)<em>axisType</em> spaceType:(MASAlignChildrenSpaceType)<em>spaceType</em> leadSpace:(CGFloat)<em>leadSpace</em> trailSpace:(CGFloat)<em>trailSpace</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>axisType</code></th>
						<td><p>方向</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>spaceType</code></th>
						<td><p>类型</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>leadSpace</code></th>
						<td><p>整体偏离leadSpace</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>trailSpace</code></th>
						<td><p>整体偏离trailSpace</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>排列一组view并设置左右边距，super的大小需要确定，或者被其他的subviews共同可以确定（也就是说super的大小不能依赖本数组里的view）</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSArray+MasonryAdditiion.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/mas_centerAlongAxis:fixedSpace:leadingTo:leadSpace:trailingTo:tailSpace:" title="mas_centerAlongAxis:fixedSpace:leadingTo:leadSpace:trailingTo:tailSpace:"></a>
	<h3 class="method-title"><code><a href="#//api/name/mas_centerAlongAxis:fixedSpace:leadingTo:leadSpace:trailingTo:tailSpace:">&ndash;&nbsp;mas_centerAlongAxis:fixedSpace:leadingTo:leadSpace:trailingTo:tailSpace:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>居中一组view，super的大小需要确定，或者被其他的subviews共同可以确定（也就是说super的大小不能依赖本数组里的view）</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)mas_centerAlongAxis:(MASAxisType)<em>axisType</em> fixedSpace:(CGFloat)<em>fixedSpace</em> leadingTo:(nullable MASViewAttribute *)<em>leadingViewAttribute</em> leadSpace:(CGFloat)<em>leadSpace</em> trailingTo:(nullable MASViewAttribute *)<em>trailingViewAttribute</em> tailSpace:(CGFloat)<em>trailSpacing</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>axisType</code></th>
						<td><p>方向</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>fixedSpace</code></th>
						<td><p>view之间的距离</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>leadingViewAttribute</code></th>
						<td><p>leadingViewAttribute</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>leadSpace</code></th>
						<td><p>整体偏离leadSpace</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>trailingViewAttribute</code></th>
						<td><p>trailingViewAttribute</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>trailSpacing</code></th>
						<td><p>整体偏离trailSpace</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>居中一组view，super的大小需要确定，或者被其他的subviews共同可以确定（也就是说super的大小不能依赖本数组里的view）</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSArray+MasonryAdditiion.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/mas_centerAlongAxis:fixedSpace:" title="mas_centerAlongAxis:fixedSpace:"></a>
	<h3 class="method-title"><code><a href="#//api/name/mas_centerAlongAxis:fixedSpace:">&ndash;&nbsp;mas_centerAlongAxis:fixedSpace:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>将array里面的所有view居中在superview里，view之间的space为fixedSpace,，super的大小需要确定，或者被其他的subviews共同可以确定（也就是说super的大小不能依赖本数组里的view）</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)mas_centerAlongAxis:(MASAxisType)<em>axisType</em> fixedSpace:(CGFloat)<em>fixedSpace</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>axisType</code></th>
						<td><p>方向</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>fixedSpace</code></th>
						<td><p>子view之间的距离</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>将array里面的所有view居中在superview里，view之间的space为fixedSpace,，super的大小需要确定，或者被其他的subviews共同可以确定（也就是说super的大小不能依赖本数组里的view）</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSArray+MasonryAdditiion.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/mas_centerAlongAxis:fixedSpace:leadSpace:trailSpace:" title="mas_centerAlongAxis:fixedSpace:leadSpace:trailSpace:"></a>
	<h3 class="method-title"><code><a href="#//api/name/mas_centerAlongAxis:fixedSpace:leadSpace:trailSpace:">&ndash;&nbsp;mas_centerAlongAxis:fixedSpace:leadSpace:trailSpace:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>将array里面的所有view居中在superview里并设置左右边距，view之间的space为fixedSpace,，super的大小需要确定，或者被其他的subviews共同可以确定（也就是说super的大小不能依赖本数组里的view）</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)mas_centerAlongAxis:(MASAxisType)<em>axisType</em> fixedSpace:(CGFloat)<em>fixedSpace</em> leadSpace:(CGFloat)<em>leadSpace</em> trailSpace:(CGFloat)<em>trailSpace</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>axisType</code></th>
						<td><p>方向</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>fixedSpace</code></th>
						<td><p>view之间的距离</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>leadSpace</code></th>
						<td><p>整体偏离leadSpace</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>trailSpace</code></th>
						<td><p>整体偏离trailSpace</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>将array里面的所有view居中在superview里并设置左右边距，view之间的space为fixedSpace,，super的大小需要确定，或者被其他的subviews共同可以确定（也就是说super的大小不能依赖本数组里的view）</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSArray+MasonryAdditiion.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/mas_alignHorizontallyWithLineNumber:leadSpace:space:trailSpace:topSpace:bottomSpace:verticalSpace:" title="mas_alignHorizontallyWithLineNumber:leadSpace:space:trailSpace:topSpace:bottomSpace:verticalSpace:"></a>
	<h3 class="method-title"><code><a href="#//api/name/mas_alignHorizontallyWithLineNumber:leadSpace:space:trailSpace:topSpace:bottomSpace:verticalSpace:">&ndash;&nbsp;mas_alignHorizontallyWithLineNumber:leadSpace:space:trailSpace:topSpace:bottomSpace:verticalSpace:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>类似collectionview的布局，固定列数，横向排列，可以设置行之间的距离，也可以设置列之间的距离，还有整体与superview的spaceing</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)mas_alignHorizontallyWithLineNumber:(NSInteger)<em>lineNumber</em> leadSpace:(CGFloat)<em>leadSpace</em> space:(CGFloat)<em>spacing</em> trailSpace:(CGFloat)<em>trailSpace</em> topSpace:(CGFloat)<em>topSpace</em> bottomSpace:(CGFloat)<em>bottomSpace</em> verticalSpace:(CGFloat)<em>verticalSpace</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>lineNumber</code></th>
						<td><p>行数</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>leadSpace</code></th>
						<td><p>最左边的view与superview的距离</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>spacing</code></th>
						<td><p>水平方向view之间的距离</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>trailSpace</code></th>
						<td><p>水平方向最右边的view与superview的距离</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>topSpace</code></th>
						<td><p>垂直方向最上面的view与superview的距离</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>bottomSpace</code></th>
						<td><p>垂直方向最下面的view与superview的距离</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>verticalSpace</code></th>
						<td><p>垂直方向view之间的距离</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>类似collectionview的布局，固定列数，横向排列，可以设置行之间的距离，也可以设置列之间的距离，还有整体与superview的spaceing</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSArray+MasonryAdditiion.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/mas_alignHorizontallyWithLineNumber:leadSpace:space:trailSpace:topSpace:bottomSpace:verticalSpace:separatorColor:separatorWidth:" title="mas_alignHorizontallyWithLineNumber:leadSpace:space:trailSpace:topSpace:bottomSpace:verticalSpace:separatorColor:separatorWidth:"></a>
	<h3 class="method-title"><code><a href="#//api/name/mas_alignHorizontallyWithLineNumber:leadSpace:space:trailSpace:topSpace:bottomSpace:verticalSpace:separatorColor:separatorWidth:">&ndash;&nbsp;mas_alignHorizontallyWithLineNumber:leadSpace:space:trailSpace:topSpace:bottomSpace:verticalSpace:separatorColor:separatorWidth:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>类似collectionview的布局，固定列数，横向排列，可以设置行之间的距离，也可以设置列之间的距离，还有整体与superview的spaceing</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)mas_alignHorizontallyWithLineNumber:(NSInteger)<em>lineNumber</em> leadSpace:(CGFloat)<em>leadSpace</em> space:(CGFloat)<em>spacing</em> trailSpace:(CGFloat)<em>trailSpace</em> topSpace:(CGFloat)<em>topSpace</em> bottomSpace:(CGFloat)<em>bottomSpace</em> verticalSpace:(CGFloat)<em>verticalSpace</em> separatorColor:(nullable UIColor *)<em>separatorColor</em> separatorWidth:(CGFloat)<em>separatorWidth</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>lineNumber</code></th>
						<td><p>行数</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>leadSpace</code></th>
						<td><p>最左边的view与superview的距离</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>spacing</code></th>
						<td><p>水平方向view之间的距离</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>trailSpace</code></th>
						<td><p>水平方向最右边的view与superview的距离</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>topSpace</code></th>
						<td><p>垂直方向最上面的view与superview的距离</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>bottomSpace</code></th>
						<td><p>垂直方向最下面的view与superview的距离</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>verticalSpace</code></th>
						<td><p>垂直方向view之间的距离</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>separatorColor</code></th>
						<td><p>view之间分割线的颜色</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>separatorWidth</code></th>
						<td><p>view之间分割线的宽度</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>类似collectionview的布局，固定列数，横向排列，可以设置行之间的距离，也可以设置列之间的距离，还有整体与superview的spaceing</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSArray+MasonryAdditiion.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/mas_alignHorizontallyWithLineNumber:leadSpace:space:trailSpace:topTo:topSpace:bottomTo:bottomSpace:verticalSpace:separatorColor:separatorWidth:" title="mas_alignHorizontallyWithLineNumber:leadSpace:space:trailSpace:topTo:topSpace:bottomTo:bottomSpace:verticalSpace:separatorColor:separatorWidth:"></a>
	<h3 class="method-title"><code><a href="#//api/name/mas_alignHorizontallyWithLineNumber:leadSpace:space:trailSpace:topTo:topSpace:bottomTo:bottomSpace:verticalSpace:separatorColor:separatorWidth:">&ndash;&nbsp;mas_alignHorizontallyWithLineNumber:leadSpace:space:trailSpace:topTo:topSpace:bottomTo:bottomSpace:verticalSpace:separatorColor:separatorWidth:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>类似collectionview的布局,并指定top的约束和bottom的关联约束，固定列数，横向排列，可以设置行之间的距离，也可以设置列之间的距离，还有整体与superview的spaceing</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)mas_alignHorizontallyWithLineNumber:(NSInteger)<em>lineNumber</em> leadSpace:(CGFloat)<em>leadSpace</em> space:(CGFloat)<em>spacing</em> trailSpace:(CGFloat)<em>trailSpace</em> topTo:(nullable MASViewAttribute *)<em>topViewAttribute</em> topSpace:(CGFloat)<em>topSpace</em> bottomTo:(nullable MASViewAttribute *)<em>bottomViewAttribute</em> bottomSpace:(CGFloat)<em>bottomSpace</em> verticalSpace:(CGFloat)<em>verticalSpace</em> separatorColor:(nullable UIColor *)<em>separatorColor</em> separatorWidth:(CGFloat)<em>separatorWidth</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>lineNumber</code></th>
						<td><p>行数</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>leadSpace</code></th>
						<td><p>最左边的view与superview的距离</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>spacing</code></th>
						<td><p>水平方向view之间的距离</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>trailSpace</code></th>
						<td><p>水平方向最右边的view与superview的距离</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>topViewAttribute</code></th>
						<td><p>top方向相关联的约束</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>topSpace</code></th>
						<td><p>垂直方向最上面的view与superview的距离</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>bottomViewAttribute</code></th>
						<td><p>bottom方向相关联的约束</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>bottomSpace</code></th>
						<td><p>垂直方向最下面的view与superview的距离</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>verticalSpace</code></th>
						<td><p>垂直方向view之间的距离</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>separatorColor</code></th>
						<td><p>view之间分割线的颜色</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>separatorWidth</code></th>
						<td><p>view之间分割线的宽度</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>类似collectionview的布局,并指定top的约束和bottom的关联约束，固定列数，横向排列，可以设置行之间的距离，也可以设置列之间的距离，还有整体与superview的spaceing</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSArray+MasonryAdditiion.h</code></p>
			</div>
			
			
		</div>
	</div>
</div>
						</div>
						
					</div>
					
					

                    
                    
          
				</main>

				<footer>
					<div class="footer-copyright">
						
						<p class="copyright">Copyright &copy; 2017 “Timeface”. All rights reserved. Updated: 2017-08-17</p>
						
						
						<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
						
					</div>
				</footer>
			</div>
		</div>
	</article>

	<script src="../js/script.js"></script>
</body>
</html>